package com.pureut.storage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.storage.domain.IncomingMaterialPrintingDetail;
import com.pureut.storage.dto.IncomingMaterialPrintingDetailDto;
import com.pureut.storage.dto.IncomingMaterialSubcontractPrintingDto;
import com.pureut.storage.vo.DeleteDetailVo;
import com.pureut.storage.vo.IncomingMaterialPrintingVo;
import com.pureut.storage.vo.IncomingMaterialSubcontractPrintingVo;

import java.util.List;

/***
 *
 * Author:C
 * Date:2022/12/27 11:56
 * @DESC
 */
public interface IncomingMaterialPrintingDetailService extends IService<IncomingMaterialPrintingDetail> {

    /**
     * 采购打印明细列表
     */
    List<IncomingMaterialPrintingDetailDto> getDetailList(long id);

    /**
     * 委外打印明细列表
     */
    List<IncomingMaterialPrintingDetailDto> getSubcontractList(long id);

    /**
     * 采购（打印）
     */
    List<IncomingMaterialPrintingDetailDto> getPrint(IncomingMaterialPrintingVo incomingMaterialPrintingVo);

    /**
     * 委外（打印）
     */
    List<IncomingMaterialPrintingDetailDto> subcontractPrint(IncomingMaterialSubcontractPrintingVo incomingMaterialSubcontractPrintingVo);

    /**
     * 来料打印页面对应的号码全部删除，上表的打印状态更新为“已完成”
     */
    boolean deleteDetail(DeleteDetailVo deleteDetailVo);

    /**
     * 删除来料打印页面数据（fegin调用）
     */
    boolean deleteData(DeleteDetailVo deleteDetailVo);
}
